home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / test-ins / bf.cc < prev    next >
C/C++ Source or Header  |  1992-12-07  |  312b  |  19 lines

  1. #include <stream.h>
  2. #include <String.h>
  3.  
  4. // gcc-2.3.2 is buggy, and can't deal with the following.
  5. // Take the wimpy way out for now until 2.3.3 is released.
  6. #if 0
  7. String s1 = String("Hello ");
  8. #else
  9. String s1("Hello ");
  10. #endif
  11. String s2(" world!\n");
  12.  
  13. int f()
  14. {
  15.     cout << s1 + s2;
  16.         return cout.good();
  17. }
  18.  
  19.